﻿using Windows.UI.Xaml.Controls;

namespace MVAScratchPad.Views
{
    public sealed partial class Settings : SettingsFlyout
    {
        public Settings()
        {
            InitializeComponent();
            Loaded += (s, e) => this.ViewModel.LoadState(null);
            Unloaded += (s, e) => this.ViewModel.SaveState(null);
        }

        ViewModels.SettingsViewModel ViewModel { get { return this.DataContext as ViewModels.SettingsViewModel; } }
    }
}